home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Contributed / SpriteWorld / SpriteWorld Files / BlitPixie / Assembler / PPC / BlitPixieBlitErase.s < prev    next >
Encoding:
Text File  |  2000-10-06  |  3.1 KB  |  141 lines  |  [TEXT/MPS ]

  1. ; DO NOT EDIT (OR EVEN READ) THIS FILE!
  2. ; BlitPixieBlitErase.s (for PPCAsm), auto-generated from BlitPixieBlitErase.c
  3.  
  4.     INCLUDE    'AsmGlobal.s'
  5.  
  6.  
  7.     MakeFunction BlitPixieBlitErase
  8.         stmw     r27,-20(SP)
  9.         mr       r29,r8
  10.         mr       r27,r9
  11.         subf     r31,r8,r6
  12.         subf     r30,r8,r7
  13.         neg      r0,r4
  14.         rlwinm   r0,r0,0,27,31
  15.         subf     r29,r0,r29
  16.         subi     r3,r3,8
  17.         subi     r4,r4,8
  18.         subi     r5,r5,8
  19.         rlwinm.  r28,r29,27,5,31
  20.         rlwinm   r29,r29,0,27,31
  21.         rlwinm   r0,r0,5,22,26
  22.         rlwimi   r0,r29,0,27,31
  23.         mtcrf    $7,r0
  24.         crnor    20,2,2
  25.         mtctr    r28
  26.         bc       4,26,*+32               ; $00000068
  27.         lbz      r0,8(r3)
  28.         lbz      r10,8(r5)
  29.         addi     r3,r3,1
  30.         stb      r0,8(r4)
  31.         addi     r5,r5,1
  32.         stb      r10,7(r3)
  33.         addi     r4,r4,1
  34.         bc       4,25,*+32               ; $00000088
  35.         lhz      r0,8(r3)
  36.         lhz      r10,8(r5)
  37.         addi     r3,r3,2
  38.         sth      r0,8(r4)
  39.         addi     r5,r5,2
  40.         sth      r10,6(r3)
  41.         addi     r4,r4,2
  42.         bc       4,24,*+32               ; $000000A8
  43.         lwz      r0,8(r3)
  44.         lwz      r10,8(r5)
  45.         addi     r3,r3,4
  46.         stw      r0,8(r4)
  47.         addi     r5,r5,4
  48.         stw      r10,4(r3)
  49.         addi     r4,r4,4
  50.         bc       4,23,*+32               ; $000000C8
  51.         lfd      fp1,8(r3)
  52.         lfd      fp2,8(r5)
  53.         addi     r3,r3,8
  54.         stfd     fp1,8(r4)
  55.         addi     r5,r5,8
  56.         stfd     fp2,0(r3)
  57.         addi     r4,r4,8
  58.         bc       4,22,*+48               ; $000000F8
  59.         lfd      fp1,8(r3)
  60.         lfd      fp2,16(r3)
  61.         lfd      fp3,8(r5)
  62.         lfd      fp4,16(r5)
  63.         addi     r3,r3,16
  64.         stfd     fp1,8(r4)
  65.         stfd     fp2,16(r4)
  66.         addi     r5,r5,16
  67.         stfd     fp3,-8(r3)
  68.         stfd     fp4,0(r3)
  69.         addi     r4,r4,16
  70.         bc       4,20,*+76               ; $00000144
  71.         li       r0,8
  72.         lfd      fp1,8(r5)
  73.         lfd      fp2,16(r5)
  74.         lfd      fp3,24(r5)
  75.         lfdu     fp4,32(r5)
  76.         lfd      fp5,8(r3)
  77.         lfd      fp6,16(r3)
  78.         lfd      fp7,24(r3)
  79.         lfd      fp8,32(r3)
  80.         stfd     fp1,8(r3)
  81.         stfd     fp2,16(r3)
  82.         stfd     fp3,24(r3)
  83.         stfdu    fp4,32(r3)
  84.         stfd     fp5,8(r4)
  85.         stfd     fp6,16(r4)
  86.         stfd     fp7,24(r4)
  87.         stfdu    fp8,32(r4)
  88.         bdnz     *-64                    ; $00000100
  89.         subic.   r27,r27,1
  90.         bc       4,27,*+48               ; $00000178
  91.         lfd      fp1,8(r3)
  92.         lfd      fp2,16(r3)
  93.         lfd      fp3,8(r5)
  94.         lfd      fp4,16(r5)
  95.         addi     r3,r3,16
  96.         stfd     fp1,8(r4)
  97.         stfd     fp2,16(r4)
  98.         addi     r5,r5,16
  99.         stfd     fp3,-8(r3)
  100.         stfd     fp4,0(r3)
  101.         addi     r4,r4,16
  102.         bc       4,28,*+32               ; $00000198
  103.         lfd      fp1,8(r3)
  104.         lfd      fp2,8(r5)
  105.         addi     r3,r3,8
  106.         stfd     fp1,8(r4)
  107.         addi     r5,r5,8
  108.         stfd     fp2,0(r3)
  109.         addi     r4,r4,8
  110.         bc       4,29,*+32               ; $000001B8
  111.         lwz      r0,8(r3)
  112.         lwz      r10,8(r5)
  113.         addi     r3,r3,4
  114.         stw      r0,8(r4)
  115.         addi     r5,r5,4
  116.         stw      r10,4(r3)
  117.         addi     r4,r4,4
  118.         bc       4,30,*+32               ; $000001D8
  119.         lhz      r0,8(r3)
  120.         lhz      r10,8(r5)
  121.         addi     r3,r3,2
  122.         sth      r0,8(r4)
  123.         addi     r5,r5,2
  124.         sth      r10,6(r3)
  125.         addi     r4,r4,2
  126.         bc       4,31,*+32               ; $000001F8
  127.         lbz      r0,8(r3)
  128.         lbz      r10,8(r5)
  129.         addi     r3,r3,1
  130.         stb      r0,8(r4)
  131.         addi     r5,r5,1
  132.         stb      r10,7(r3)
  133.         addi     r4,r4,1
  134.         add      r3,r3,r31
  135.         add      r4,r4,r30
  136.         add      r5,r5,r31
  137.         bne      *-448                   ; $00000044
  138.         lmw      r27,-20(SP)
  139.         blr
  140.  
  141.